
#encoding=UTF-8

from Error import *

class ObjectFactory:
	def __init__(self):
		pass

	def Create(self, name):
		if name == "AirDefense":
			import AirDefense 
			return AirDefense.AirDefense()

		if name == "ArcherQueenAltar":
			import ArcherQueenAltar 
			return ArcherQueenAltar.ArcherQueenAltar()

		if name == "ArcherTower":
			import ArcherTower 
			return ArcherTower.ArcherTower()

		if name == "ArmyCamp":
			import ArmyCamp 
			return ArmyCamp.ArmyCamp()

		if name == "BarbarianKingAltar":
			import BarbarianKingAltar 
			return BarbarianKingAltar.BarbarianKingAltar()

		if name == "Barracks":
			import Barracks 
			return Barracks.Barracks()

		if name == "Cannon":
			import Cannon 
			return Cannon.Cannon()

		if name == "ClanCastle":
			import ClanCastle 
			return ClanCastle.ClanCastle()

		if name == "DarkBarracks":
			import DarkBarracks 
			return DarkBarracks.DarkBarracks()

		if name == "DarkElixirDrill":
			import DarkElixirDrill 
			return DarkElixirDrill.DarkElixirDrill()

		if name == "DarkElixirStorage":
			import DarkElixirStorage 
			return DarkElixirStorage.DarkElixirStorage()

		if name == "ElixirCollector":
			import ElixirCollector 
			return ElixirCollector.ElixirCollector()

		if name == "ElixirStorage":
			import ElixirStorage 
			return ElixirStorage.ElixirStorage()

		if name == "GoldMine":
			import GoldMine 
			return GoldMine.GoldMine()

		if name == "GoldStorage":
			import GoldStorage 
			return GoldStorage.GoldStorage()

		if name == "HiddenTesla":
			import HiddenTesla 
			return HiddenTesla.HiddenTesla()

		if name == "InfernoTower":
			import InfernoTower 
			return InfernoTower.InfernoTower()

		if name == "Laboratory":
			import Laboratory 
			return Laboratory.Laboratory()

		if name == "Mortar":
			import Mortar 
			return Mortar.Mortar()

		if name == "SpellFactory":
			import SpellFactory 
			return SpellFactory.SpellFactory()

		if name == "TownHall":
			import TownHall 
			return TownHall.TownHall()

		if name == "Wall":
			import Wall 
			return Wall.Wall()

		if name == "WizardTower":
			import WizardTower 
			return WizardTower.WizardTower()

		if name == "XBow":
			import XBow 
			return XBow.XBow()

		raise InteralError
